package com.xjrsoft.common.annotation;

import com.xjrsoft.common.Enum.TransDataType;

import java.lang.annotation.*;
import java.util.Arrays;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface DataTrans {

    TransDataType dataType() default TransDataType.DEFAULT;

    String dataCode() default "";

    String showField() default "";

    String savedField() default "";

    String sql() default "";

    boolean multi() default false;

    String[] dataCodes() default {};

    String[] showFields() default {};

    String[] savedFields() default {};

    String[] sqls() default {};

    boolean showAllLevels() default true;

    String separator() default ",";
}
